package com.ny.dto;

import javax.validation.constraints.NotEmpty;
import lombok.Data;
import javax.validation.constraints.NotNull;
import lombok.NoArgsConstructor;
import java.util.Date;

/**
 * 健身资讯信息封装
 *
 * @author MSI-NB
 * @date 2025-03-08 13:14:38
 */
@Data
@NoArgsConstructor
public class NewsDTO {

    @NotNull(groups = { UpdateGroup.class }, message = "资讯ID不能为空")
    private Integer newsId;

    @NotEmpty(groups = { CreateGroup.class }, message = "标题不能为空")
    private String title;

    @NotEmpty(groups = { CreateGroup.class }, message = "内容不能为空")
    private String content;

    @NotNull(groups = { CreateGroup.class }, message = "发布日期不能为空")
    private java.util.Date publishDate;
}
